//==================================================
//
// 		Project: Mealeo
// 		Author: Rareview Interactive
// 		Main Javascript
//
//==================================================

// Clear input text and darken color on Sign Up form

function clearAndColor(el) {
	if (el.defaultValue==el.value) el.value = ""
	if (el.style) el.style.color = "#505050"
}


// Begin jQuery

$(document).ready(function() {

    $('.showhide a').toggle(function() {
        $(this).parent().prev("ul").slideDown('normal').removeClass('hide').preventDefault;
        $(this).html('Less...');
        $(this).toggleClass("active");
    }, function() {
        $(this).parent().prev("ul").slideUp('normal').addClass('hide').preventDefault;
        $(this).html('More...');
        $(this).removeClass("active");
    });

    // Show/Hide Four Steps bar - If bar is shown...

    $('.show_steps a.showhide').toggle(function() {
        $(this).parents("#four_steps_container").animate({ "bottom": "-=50px" }, "slow").preventDefault;
        $(this).html('Show');
        $(this).toggleClass("active");
    }, function() {
        $(this).parents("#four_steps_container").animate({ "bottom": "+=50px" }, "slow").preventDefault;
        $(this).html('Hide');
        $(this).removeClass("active");
    });

    // Show/Hide Four Steps bar - If bar was hidden by user...

    $('.hide_steps a.showhide').toggle(function() {
        $(this).parents("#four_steps_container").animate({ "bottom": "+=50px" }, "slow").preventDefault;
        $(this).html('Hide');
        $(this).toggleClass("active");
    }, function() {
        $(this).parents("#four_steps_container").animate({ "bottom": "-=50px" }, "slow").preventDefault;
        $(this).html('Show');
        $(this).removeClass("active");
    });



    // end jQuery

});